package com.wgts.wgts.mvp.model.imp;

import com.wgts.wgts.mvp.model.IHomePageCurrencyActivityModel;
import com.wgts.wgts.netmodle.HttpResultSubscriber;
import com.wgts.wgts.netmodle.NetService;
import com.wgts.wgts.netmodle.req.AppModleRequest;
import com.wgts.wgts.netmodle.req.SpecialProductReq;
import com.wgts.wgts.netmodle.resp.AppModleEntity;
import com.wgts.wgts.netmodle.resp.ComponentIndextActivityEntity;
import com.wgts.wgts.netmodle.resp.SpecialProductEntity;

import java.util.List;

public class HomePageCurrencyActivityModel implements IHomePageCurrencyActivityModel {
    private NetService netService;

    public HomePageCurrencyActivityModel(NetService netService) {
        this.netService = netService;
    }


    @Override
    public void initSpecialResult(SpecialProductReq req, HttpResultSubscriber<SpecialProductEntity> subscriber) {
        netService.specialProduct(req, subscriber);
    }


    @Override
    public void componentIndexActivity(Integer pId, HttpResultSubscriber<List<ComponentIndextActivityEntity>> subscriber) {
        netService.componentIndexActivity(pId, subscriber);
    }


}
